package au.csiro.nt.psdp.dao.impl;

import java.util.List;

import org.appfuse.dao.hibernate.UniversalDaoHibernate;
import au.csiro.nt.psdp.model.Role;
import au.csiro.nt.psdp.dao.LookupDao;

/**
 * Hibernate implementation of LookupDao.
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
public class LookupDaoImpl extends UniversalDaoHibernate implements LookupDao
{

    /**
     * @see org.appfuse.dao.LookupDao#getRoles()
     */
    public List<Role> getRoles()
    {
        log.debug("retrieving all role names...");

        return getHibernateTemplate().find("from Role order by name");
    }
}
